package com.laowang.project.system.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.laowang.framework.aspectj.lang.annotation.Excel;
import com.laowang.framework.web.domain.PageObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 系统券对象 my_system_coupon
 *
 * @author laowang
 * @date 2023-08-21
 */
@NoArgsConstructor
@Data
public class MySystemCoupon extends PageObject implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @ApiModelProperty(value = "${comment}", required = false)
    private Integer id;

    /**
     * 1全员,2会员
     */
    @Excel(name = "1全员,2会员")
    @ApiModelProperty(value = "1全员,2会员", required = false)
    private Integer type;

    /**
     * 关联店铺
     */
    @Excel(name = "关联店铺")
    @ApiModelProperty(value = "关联店铺", required = false)
    private Integer shopId;

    /**
     * 标题
     */
    @Excel(name = "标题")
    @ApiModelProperty(value = "标题", required = false)
    private String title;

    /**
     * 价格
     */
    @Excel(name = "价格")
    @ApiModelProperty(value = "价格", required = false)
    private BigDecimal price;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间", required = false)
    private Date created;

    /**
     * 到期时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "到期时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "到期时间", required = false)
    private Date endTime;

    /**
     * 描述
     */
    @Excel(name = "描述")
    @ApiModelProperty(value = "描述", required = false)
    private String desc;

    /**
     * 0下架,1上架
     */
    @Excel(name = "0下架,1上架")
    @ApiModelProperty(value = "0下架,1上架", required = false)
    private Integer isUp;


    private Integer num;//可领取的数量


}
